package com.study.mike.spring.sample.aop;

import org.springframework.aop.ThrowsAdvice;

import java.lang.reflect.Method;

/**
 * <p>
 * 啥也没做. 异常的怎么处理??
 * @author: yuanwl
 * @date: 2021/2/13 18:12
 */
public class MyThrowsAdvice implements ThrowsAdvice {

    public void afterThrowing(Method method, Object[] args, Object target, Exception ex){
        System.err.println(String.format(">> MyThrowsAdvice#afterThrowing: target=%s, method=%s, ex=%s", target, method, ex));
    }

}
